<script setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import { RouterLink, RouterView,useRouter,useRoute } from 'vue-router'
// import {useUserStore} from '@/stores/modules/user.js'
// import {useCounterStore} from '@/stores/modules/counter.js'
//统一
import {useUserStore,useCounterStore} from '@/stores'
const  router = useRouter()
const userStore = useUserStore()
const counterStore = useCounterStore()

function go(){
	router.push('/about')
}
</script>

<template>
	<div>
		<!-- App.vue只需要留一个路由出口 router-view即可 -->
		<el-config-provider :locale="zhCn">
		     <router-view></router-view>
		</el-config-provider>
	</div>
<!-- 	<div>
		APP根组件
		<el-button @click="$router.push('/home')">跳转home</el-button>
		<el-button @click="go">跳转about</el-button>
		
		
		
		<p>{{userStore.token.length>0?userStore.token:'暂无数据'}}</p>
		<el-button @click="userStore.setToken('oijaoidjioaoiajiosdioajosjioda')">登录</el-button>
		<el-button @click="userStore.removeToken">退出</el-button>
		<hr/>
		{{counterStore.count}}
		<el-button @click="counterStore.addCount(5)">加5</el-button>
	
	
	</div> -->

</template>

<style scoped>

</style>
